<?php
/**
 * Public
 * 
 * ============================================================================
 * 版权所有: (c) 2009-2011，<UEShop Inc>，并保留所有权利。
 * 网站地址: http://www.ueshop.cn
 * ----------------------------------------------------------------------------
 * 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和使用；
 * 不允许对程序代码以任何形式任何目的的再发布。
 * ============================================================================
 *
 * @author      cmpan
 * @copyright   Copyright (c) 2009-2010 UEShop Inc. (http://www.ueshop.cn)
 * @license     http://www.ueshop.cn/1_0.txt
 */
class PublicController extends UE_Controller_Action {	
	public function msgAction() {
		if ($this->id) {
			$this->tpl->assign('msg', UE_Lang::get($this->id));
			$this->tpl->apply('system/public.msg');
		}
	}
	
	public function _404Action() {
		if ($this->hasErr()) {
			$this->tpl->setErr($this->getErrs());
		}
		
		$this->tpl->assign('title', '(404错误)该页面不存在');
		$this->tpl->apply('404');
	}

	public function _403Action() {		
		if ($this->hasErr()) {
			$this->tpl->setErr($this->getErrs());
		}
		
		$this->tpl->assign('title', '(403错误)您没有权限访问该页面');
		$this->tpl->apply('403');
	}
}